package com.bbcare.treat.plat.store.ibatis;

import java.util.List;
import java.util.Map;

import com.bbcare.treat.plat.entity.PtArchiveData;

/*
 * @name:         诊疗方案任务（内容）表存储接口
 * @author:       DemonLee
 * @createTime:   2017.8.16
 * @description:  诊疗方案（版本）表信息
 * @modify:
 * 
 */
public interface IPtArchiveDataDAO {
    /**
     * 批量插入患者建档内容详情
     * 
     * @param List
     * @return
     */
    public void savePtArchiveDataBatch(List<PtArchiveData> ptArchiveData) throws Exception;

    /**
     * 插入患者建档内容详情历史
     * 
     * @param pt_scheme_id,update_type,update_accept
     * @return
     */
    public void savePtArchiveDataHis(Map<String, Object> mapIn) throws Exception;

    /**
     * 查询患者建档信息
     * 
     * @param ptSchemeId
     * @return List
     */
    public List<PtArchiveData> listPtArchiveData(Map<String, Object> mapIn) throws Exception;
    
    
    /**
     * 查询患者建档信息用于贝利2
     * 
     * @param ptSchemeId
     * @return List
     */
    public List<PtArchiveData> listArchiveDataByUserIdAndAcceptPrivate(Map<String, Object> mapIn) throws Exception;
    

    /**
     * 更新患者建档内容详情
     * 
     * @param pt_task_id,question_id,question_answer,update_accept...
     * @return
     */
    public int modifyPtArchiveData(Map<String, Object> mapIn) throws Exception;
}
